package com.eastcom.bm.atom;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;

public class DataAbnormalPK implements Serializable {

	
	private String kpiId;

	private String neId;

	private String datasetId;

	private Date timeStamp;

	@Override
	public int hashCode() {
		return kpiId.hashCode() + neId.hashCode() + datasetId.hashCode()
				+ timeStamp.hashCode();
	}

	@Override
	public boolean equals(Object o) {
		if (o == null)
			return false;
		if (o == this)
			return true;
		DataAbnormalPK pk = (DataAbnormalPK) o;
		return this.kpiId.equals(pk.getKpiId())
				&& this.neId.equals(pk.getNeId())
				&& this.datasetId.equals(pk.getDatasetId())
				&& this.timeStamp.equals(pk.getTimeStamp());
	}

	@Column(name="KPI_ID")
	public String getKpiId() {
		return kpiId;
	}

	public void setKpiId(String kpiId) {
		this.kpiId = kpiId;
	}

	@Column(name="NE_ID")
	public String getNeId() {
		return neId;
	}

	public void setNeId(String neId) {
		this.neId = neId;
	}

	@Column(name="DATASET_ID")
	public String getDatasetId() {
		return datasetId;
	}

	public void setDatasetId(String datasetId) {
		this.datasetId = datasetId;
	}

	@Column(name="TIME_STAMP")
	public Date getTimeStamp() {
		return timeStamp;
	}

	public void setTimeStamp(Date timeStamp) {
		this.timeStamp = timeStamp;
	}
}
